package com.hospital.schedule.module.controller;


import com.hospital.common.base.Result;
import com.hospital.schedule.module.service.ITDepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 科室表 前端控制器
 * </p>
 *
 * @author author
 * @since 2025-09-12
 */
@RestController
//@RequestMapping("/t-department")
public class TDepartmentController {

    @Autowired
    private ITDepartmentService tDepartmentService;
    /**
     * 查询所有科室
     * @return
     */
    @GetMapping("/findAllDepartment")
    public Result findAllDepartment() {
        return Result.success(tDepartmentService.list());
    }
}
